@echo on

SET PATH=%SystemRoot%\Microsoft.NET\Framework\v1.0.3705;%SystemRoot%\Microsoft.NET\Framework\v2.0.50727;

del bin\ServiceAdmin.exe
del bin\ServiceAdmin.pdb

copy resources\Options.resX bin\Options.resX
resgen resources\Text.de.txt
resgen resources\Text.en-GB.txt

al /t:lib /culture:de /embed:resources\Text.de.resources /out:bin\de\ServiceAdmin.resources.dll
al /t:lib /culture:en-GB /embed:resources\Text.en-GB.resources /out:bin\en-GB\ServiceAdmin.resources.dll

csc /debug- /t:winexe /win32icon:bin\images\app.ico /r:System.dll;System.Windows.Forms.dll;System.Drawing.dll /out:bin/ServiceAdmin.exe ServiceConfig.cs ServiceControl.cs GuiHandler.cs Monitor.cs TaskIcon.cs FormControlHandler.cs Status\ServiceStatus.cs Status\StatusCollection.cs Status\Stopped.cs Status\Running.cs Status\Default.cs Config\OptionReader.cs Config\OptionHandler.cs AssemblyInfo.cs

echo. to exit, press any key

pause
